Skip to content

Slightly more correct requirements#17

Merged
rafaelfranca merged 3 commits intorails:masterfrom
deivid-rodriguez:better_requirements
Feb 15, 2019
Merged

Slightly more correct requirements#17
rafaelfranca merged 3 commits intorails:masterfrom
deivid-rodriguez:better_requirements

Conversation

@deivid-rodriguez
Copy link
Copy Markdown
Contributor

This issue is just theoretical, just raising awareness of the problem. See ruby/rubygems#2597.

language: ruby
sudo: false
rvm:
- 2.2.4
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why ruby 2.2 support was removed? This gem still supports it.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, will readd, was just quickly fixing CI.

To be explicitly about "allowing all prereleases".
@rafaelfranca rafaelfranca merged commit 9368963 into rails:master Feb 15, 2019
@rafaelfranca
Copy link
Copy Markdown
Member

Thanks!

@deivid-rodriguez
Copy link
Copy Markdown
Contributor Author

Thank you!

ghost pushed a commit to ruby/rubygems that referenced this pull request Apr 15, 2019
2651: Restore transitiveness of version comparison r=bronzdoc a=deivid-rodriguez

# Description:

This is an alternative to #2597 fix to #2595.

I strongly think this is the best way to fix this, even if it _could_ create some incompatibility with some gems relying on things like "~> 5.x" being lower than _all_ 5.0.0 prereleases.

As explained in that discussion, the official way that's recommended in the docs to match all prereleases is "~> 5.a", because "a" is the first string in lexicographical order.

I created PRs to the two gems I found relying on this:

* rails/activemodel-serializers-xml#17
* rails/rails-controller-testing#45

I would consider this a bug fix and ship it normally on a bug fix release, but I can understand if others prefer a more conservative approach.

# Tasks:

- [x] Describe the problem / feature
- [x] Write tests
- [x] Write code to solve the problem
- [ ] Get code review from coworkers / friends

I will abide by the [code of conduct](https://github.com/rubygems/rubygems/blob/master/CODE_OF_CONDUCT.md).

Co-authored-by: John Hawthorn <john@hawthorn.email>
pombredanne pushed a commit to aboutcode-org/univers that referenced this pull request Dec 7, 2021
2651: Restore transitiveness of version comparison r=bronzdoc a=deivid-rodriguez

# Description:

This is an alternative to #2597 fix to #2595.

I strongly think this is the best way to fix this, even if it _could_ create some incompatibility with some gems relying on things like "~> 5.x" being lower than _all_ 5.0.0 prereleases.

As explained in that discussion, the official way that's recommended in the docs to match all prereleases is "~> 5.a", because "a" is the first string in lexicographical order.

I created PRs to the two gems I found relying on this:

* rails/activemodel-serializers-xml#17
* rails/rails-controller-testing#45

I would consider this a bug fix and ship it normally on a bug fix release, but I can understand if others prefer a more conservative approach.

# Tasks:

- [x] Describe the problem / feature
- [x] Write tests
- [x] Write code to solve the problem
- [ ] Get code review from coworkers / friends

I will abide by the [code of conduct](https://github.com/rubygems/rubygems/blob/master/CODE_OF_CONDUCT.md).

Co-authored-by: John Hawthorn <john@hawthorn.email>
pombredanne pushed a commit to aboutcode-org/univers that referenced this pull request Dec 7, 2021
2651: Restore transitiveness of version comparison r=bronzdoc a=deivid-rodriguez

# Description:

This is an alternative to #2597 fix to #2595.

I strongly think this is the best way to fix this, even if it _could_ create some incompatibility with some gems relying on things like "~> 5.x" being lower than _all_ 5.0.0 prereleases.

As explained in that discussion, the official way that's recommended in the docs to match all prereleases is "~> 5.a", because "a" is the first string in lexicographical order.

I created PRs to the two gems I found relying on this:

* rails/activemodel-serializers-xml#17
* rails/rails-controller-testing#45

I would consider this a bug fix and ship it normally on a bug fix release, but I can understand if others prefer a more conservative approach.

# Tasks:

- [x] Describe the problem / feature
- [x] Write tests
- [x] Write code to solve the problem
- [ ] Get code review from coworkers / friends

I will abide by the [code of conduct](https://github.com/rubygems/rubygems/blob/master/CODE_OF_CONDUCT.md).

Co-authored-by: John Hawthorn <john@hawthorn.email>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants